Skip to content

MySQL: Prevent Panic when WHERE clause contains parenthesis. #531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 2, 2020
Merged

MySQL: Prevent Panic when WHERE clause contains parenthesis. #531

merged 3 commits into from
Jun 2, 2020

Conversation

JessBellon
Copy link
Contributor

The sqlc MySQL parser didn't have the logic to handle a where clause with parenthesis in it and would panic. This seems to fix it, but there might be some edge cases I didn't account for. (Sorry for the semi-contrived test case, its similar to what I needed but its also kinda silly)

@kyleconroy kyleconroy merged commit 8aa23ee into sqlc-dev:master Jun 2, 2020
@kyleconroy
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants